from dao.user_resume_dao import UserResumeDao


class UserResumeService:
    def __init__(self, session):
        self.session = session

    def add(self, user_resume):
        dao = UserResumeDao(self.session)
        dao.add(user_resume)

    def get_resume_by_user_id(self, user_id):
        dao = UserResumeDao(self.session)
        resume = dao.get_resume_by_user_id(user_id)
        return resume
